#include "features.h"

features::features(string nom, string gen, string per)
{
  nombre = nom;
  genre = gen;
  personne = per;
}

features::~features()
{
}

void
features::add_feature(string nom, string gen, string per)
{
	if(nom != "")
		nombre = nom;
	if(gen != "")
		genre = gen;
	if(per != "")
		personne = per;		
}

void
features::print(ostream& out_stream)
{
	out_stream << "[nombre = " << nombre << endl;
	out_stream << "genre = " << genre << endl;
	out_stream << "personne = " << personne << "]";
}

string
features::print()
{
	return 	"[nombre = " + nombre + "\n" +
			"genre = " + genre + "\n" +
			"personne = " + personne + "]";
}
